From 66669e05735157239ba3d321160ac68e93777795 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 6 Mar 2020 12:55:15 -0800 Subject: [PATCH] headerbar: Stop looking at type hints --- gtk/gtkheaderbar.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c index ca56f4fba1..46454f8f68 100644 --- a/gtk/gtkheaderbar.c +++ b/gtk/gtkheaderbar.c @@ -346,9 +346,8 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar) else menu = NULL; - is_sovereign_window = (!gtk_window_get_modal (window) && - gtk_window_get_transient_for (window) == NULL && - gtk_window_get_type_hint (window) == GDK_SURFACE_TYPE_HINT_NORMAL); + is_sovereign_window = !gtk_window_get_modal (window) && + gtk_window_get_transient_for (window) == NULL; tokens = g_strsplit (layout_desc, ":", 2); if (tokens) -- 2.30.2